|
Public Types |
| enum | EBlitMode {
kBitBltCopy = 0,
kBitBltAnd = 1,
kBitBltOr = 2,
kBitBltColorize = 3,
kBitBltXor = 4,
kBitBltDitherCopy = 5,
kBitBltNotSrcBic = 6,
kInvalidBlitMode = 0xFFFFFFFF
} |
| enum | EJustification { kJustTopLeft = 0,
kJustFullCenter = 1,
kInvalidJustification = 0xFFFFFFFF
} |
| enum | EBlitType { eBlitNormal = 0,
eBlitDithered = 1,
eInvalidBlitType = 0xFFFFFFFF
} |
| enum | EBlitLocation {
eUpperLeft = 0,
eUpperCenter,
eUpperRight,
eLeftCenter,
eCenter,
eRightCenter,
eBottomLeft,
eBottomCenter,
eBottomRight
} |
Public Member Functions |
| | TMCOffscreen (uint32 width, uint32 height, uint32 bitDepth, int32 left, int32 top, boolean rightSideUp=true, boolean allowGCDrawing=true) |
| | TMCOffscreen (IMCGraphicContext &hDC, const TMCRect &rect, uint32 bitDepth, boolean rightSideUp=true, boolean allowGCDrawing=true) |
| | Deprecated (not implemented).
|
| | TMCOffscreen (const TMCOffscreen &existingOffscreen) |
| virtual | ~TMCOffscreen (void) |
| boolean | IsValid (void) const |
| virtual TMCPixelBucket & | PixelBucket (void) |
| virtual const TMCPixelBucket & | PixelBucket (void) const |
| uint32 | GetWidth (void) const |
| uint32 | GetHeight (void) const |
| int32 | GetLeft (void) const |
| int32 | GetTop (void) const |
| uint8 * | GetBaseAddress (void) |
| const uint8 * | GetBaseAddress (void) const |
| uint32 | GetBitDepth (void) const |
| uint32 | GetRowBytes (void) const |
| uint32 | GetPadding (void) const |
| uint32 | GetPlanes (void) const |
| boolean | GetRightSideUp (void) const |
| EBlitType | GetBlitType (void) const |
| boolean | GetAllowGCDrawing (void) const |
| virtual TMCRect | GetRect (void) const |
| virtual boolean | GetRect (TMCRect &rect) const |
| virtual SystemGCPtr | PrepareForGraphicContextDraw (void) |
| virtual void | FinishedGraphicContextDraw (void) |
| virtual void | SetOrigin (MCXYPos xPos, MCXYPos yPos) |
| virtual void | FillMCInformation (void) |
| | DEPRECATED.
|
| uint32 | CalcRowBytes (uint32 width, uint32 bitDepth) |
| virtual boolean | SetBlitType (TMCOffscreen::EBlitType type) |
| virtual void | GetPixel (int32 xLoc, int32 yLoc, TMCARGBColor &pixel) const |
| virtual void | SetPixel (int32 xLoc, int32 yLoc, const TMCARGBColor &pixel) |
| boolean | Blit (TMCOffscreen &destOffscreen) const |
| boolean | Blit (TMCOffscreen &destOffscreen, const TMCRect &dstRect) const |
| boolean | Blit (TMCOffscreen &destOffscreen, const TMCRect &dstRect, const TMCRect &srcRect) const |
| boolean | Blit (IMCGraphicContext &destContext, const TMCRect &dstRect) const |
| boolean | Blit (IMCGraphicContext &destContext, const TMCRect &dstRect, const TMCRect &srcRect) const |
| virtual boolean | BlitAtPoint (TMCOffscreen &destOffscreen, const TMCPoint &dstPt, EBlitLocation blitLocation) const |
| virtual boolean | GetBlitAtPointRect (const TMCPoint &dstPt, EBlitLocation blitLocation, TMCRect &rect) const |
Static Public Member Functions |
| static TMCOffscreen * | Create (uint32 width, uint32 height, uint32 bitDepth, int32 inLeft=0, int32 inTop=0, boolean rightSideUp=true, boolean allowGCDrawing=true) |
| static TMCOffscreen * | Create (const TMCOffscreen &inOffscreen) |
| static MCCOMErr | CreateCompatiblePixelBucket (int32 widthParam, int32 heightParam, int32 depthParam, TMCCompatiblePixelBucket **outBucket) |
| static MCCOMErr | DestroyCompatiblePixelBucket (TMCCompatiblePixelBucket *inBucket) |
Protected Member Functions |
| virtual boolean | DefaultInitBegin (void) |
| | DEPRECATED.
|
| virtual void | DefaultInitEnd (void) |
| | DEPRECATED.
|
| virtual void | ClearAllPointers (void) |
| | DEPRECATED.
|
| void | DefaultInitMCOffscreenBegin (void) |
| void | DefaultInitMCOffscreenEnd (void) |
| void | ClearAllMCOffscreenPointers (void) |
| virtual boolean | Blit (SystemGCPtr destGC, const TMCRect &dstRect, const TMCRect &srcRect) const |
| boolean | AdjustRectsForBlit (const TMCRect &totalsrc, const TMCRect &totaldst, TMCRect &srcRect, TMCRect &ioDstRect) const |
Protected Attributes |
| boolean | fValid |
| EBlitType | fBlitType |
| TMCPixelBucket | fPixelBucket |
| int32 | fTop |
| int32 | fLeft |
| uint32 | fWidth |
| uint32 | fHeight |
| uint8 * | fBaseAddress |
| uint32 | fBitDepth |
| uint32 | fRowBytes |
| uint32 | fPadding |
| uint32 | fPlanes |
| PixelBucketType | fBucketType |
| boolean | fRightSideUp |
| boolean | fAllowGCDrawing |
| int32 | fPrepared |
| SystemGCPtr | fGCDrawPtr |
TMCOffscreen owns its memory and will delete it. But since TMCOffscreen is not a counted object, you'll need to explicitely delete the offscreen. So it is a good idea to use a smart pointer: TMCSmartPtr<TMCOffscreen> offscreen;